package top.lidee.repository.model;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Null;

/**
 * 店铺表
 * <p>
 * Created by FSQ
 * CopyRight https://www.lidee.top
 */
@Getter
@Setter
@TableName("mt_store")
@ApiModel(value = "MtStore对象", description = "店铺表")
public class MtStore implements Serializable {

    private static final long serialVersionUID = 1L;

    @Null
    @ApiModelProperty("自增ID")
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("店铺编号")
    private String externalId;

    @ApiModelProperty("所属商户ID")
    private Integer merchantId;

    @ApiModelProperty("主体类型：0个体工商户，1企业，2个人商户")
    private String principalType;

    @ApiModelProperty("营业执照")
    private String license;

    @ApiModelProperty("统一社会信用代码")
    private String creditCode;

    @ApiModelProperty("营业执照店铺名称")
    private String licenseName;

    @ApiModelProperty("联系人姓名/法人")
    private String contact;

    @ApiModelProperty("地址（经营地址/营业执照地址）")
    private String address;

    @ApiModelProperty("营业执照有效期（开始时间）")
    private Date licenseStartTime;

    @ApiModelProperty("营业执照有效期（结束时间）")
    private Date licenseEndTime;


    @ApiModelProperty("身份证正面url")
    private String cardUpUrl;
    @ApiModelProperty("身份证反面url")
    private String cardVersaUrl;



    @ApiModelProperty("身份证有效期（开始时间）")
    private Date cardStartTime;

    @ApiModelProperty("身份证有效期（结束时间）")
    private Date cardEndTime;

    @ApiModelProperty("身份证居住地址")
    private String idCardAddress;

    @ApiModelProperty("联系电话")
    private String phone;

    @ApiModelProperty("主营分类ID(2级)")
    private Integer cateId;

    @ApiModelProperty("店铺名称")
    private String name;

    @ApiModelProperty("店铺二维码")
    private String qrCode;

    @ApiModelProperty("省份")
    private String province;
    @ApiModelProperty("城市")
    private String city;
    @ApiModelProperty("区/县")
    private String county;

    @ApiModelProperty("门头照片url")
    private String doorPhotographUrl;
    @ApiModelProperty("内景照片url")
    private String interiorUrl;


    @ApiModelProperty("是否默认")
    private String isDefault;

    @ApiModelProperty("经度")
    private String latitude;

    @ApiModelProperty("维度")
    private String longitude;
    @ApiModelProperty("营业时间")
    private String hours;


    @ApiModelProperty("备注信息")
    private String description;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty("A：有效/启用；D：无效；E：审核失败")
    private String status;

    @ApiModelProperty("最后操作人")
    private String operator;

    @ApiModelProperty("法人身份证号")
    private String idCard;


    @ApiModelProperty("直付通经营场景类型（1：线下/当面付，2：小程序支付，3：商户代扣，4：jsapi支付）分号分隔。默认1,3")
    private String sceneType;


}
